package com.bsj.power.common.def.protocol.gb28181;

import lombok.Data;

/**
 * @ClassName RtpData
 * @Description rtp协议解析数据
 * @Author zhoushubin
 * @Date 2022/1/14 9:54
 **/
@Data
public class RtpData {
    /**
     * key 缓存池key
     * data FD协议数据体
     * channel 通道号
     * device 设备号
     * dataType 数据类型 0:视频I帧  1:视频P帧 2:视频B帧  3:音频帧 4:透传数据
     * flowByte 流量长度（字节长度）
     * rateType 帧率
     * resolutionRatio 分辨率枚举
     * payLoad 编码格式
     */
    private String key;
    private byte[] data;
    private int channel;
    private byte dataType;
    private String device;
    private long flowByte;
    private int rateType;
    private int resolutionRatio;
    private long time;
    private long payLoad;

    public RtpData(String key, int channel, byte dataType, String device) {
        this.key = key;
        this.channel = channel;
        this.dataType = dataType;
        this.device = device;
    }

}
